package cn.glutnn.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Order)表实体类
 *
 * @author msh
 * @since 2024-10-25 09:35:09
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_order")
public class Order {
    //订单id@TableId
    private Integer orderId;

    //需求标题
    private String title;
    //期望价格
    private Double price;
    //内容
    private String content;
    //订单状态，0表示待合作，1表示待发货，2表示完成，3表示完成但未评价
    private Integer orderStatus;
    //1销售订单，2需求订单
    private String type;

    private String picture;
    //发起订单人
    private String ownName;
    //合作人名字
    private String cooperationName;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    //订单收货地址
    private String address;

}

